﻿using EcoSystem.Office.Excel;
using System.Collections.Generic;

namespace EcoSystem
{
    public class ExportExcelOption
    {

        /// <summary>
        /// 是否绘制边框
        /// </summary>
        public bool DrawCellBorder { get; set; }

        /// <summary>
        /// 行高
        /// </summary>
        public int RowHeight { get; set; }

        /// <summary>
        /// 是否自动设置列宽
        /// </summary>
        public bool AutoSizeColumn { get; set; }

        /// <summary>
        /// 默认日期格式处理
        /// </summary>
        public string DateTimeFormatter { get; set; } = "yyyy年MM月dd日 HH:mm";

        /// <summary>
        /// 
        /// </summary>
        public string SheetName { get; set; } = "Sheet1";

        /// <summary>
        /// 标题
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// 自定义头部行数据
        /// </summary>
        public List<HeaderRow> HeaderRows { get; set; }

        /// <summary>
        /// 是否影藏列标题行
        /// </summary>
        public bool HideColumnTitleRow { get; set; } = false;

        /// <summary>
        /// 导出列配置
        /// </summary>
        public List<ExportColumn> Columns { get; set; }

        /// <summary>
        /// 页脚
        /// </summary>
        public string FooterContent { get; set; }
    }
}
